﻿using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Input;
using ContactSMS.Client.Service;
using ContactSMS.Client.Views;

namespace ContactSMS.Client.ViewModels
{
    public partial class MeViewModel : ObservableObject
    {
        public MeViewModel()
        {

        }

        [RelayCommand]
        public void LogOut()
        {
            AuthService.LogOut();
            Application.Current.MainPage = new NavigationPage(new LoginPage());
        }
    }
}
